package com.mingqijia.gassafety.webserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.entity.RecordControllerHistory;
import com.mingqijia.gassafety.db.mapper.RecordControllerHistoryMapper;
import com.mingqijia.gassafety.webserver.service.RecordControllerHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 控制器上报数据历史 服务实现类
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-10-12
 */
@Service
public class RecordControllerHistoryServiceImpl extends ServiceImpl<RecordControllerHistoryMapper, RecordControllerHistory> implements RecordControllerHistoryService {

    @Autowired
    private RecordControllerHistoryMapper recordControllerHistoryMapper;

    @Override
    public List<RecordControllerHistory> selectListByDevice(String deviceId, Integer consumerId, String spId, String month) {
        return recordControllerHistoryMapper.selectListByDevice(deviceId, consumerId, spId, month);
    }
}
